

class uploadController{
    constructor(){}

    img(req, res, next){
        let file = req.file;
        console.log('文件类型：%s', file.mimetype);
        console.log('原始文件名：%s', file.originalname);
        console.log('文件大小：%s', file.size);
        console.log('文件保存路径：%s', file.path);
        res.send({ret_code: '0'});
    }
}

export default new uploadController()